<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<title>后台管理</title>
	<link rel="stylesheet" type="text/css" href="UI/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="UI/css/main.css"/>
    <script type="text/javascript" src="UI/js/libs/modernizr.min.js"></script>
    <link href="UI/users/bootstrap/css/bootstrap.min.css" rel="stylesheet">
   	<script src="UI/users/bootstrap/js/bootstrap.min.js"></script>

</head>
  <body>
  <s:if test="null==#session.account">
	<s:a href="login.action" align="center"><h2>您不能直接访问网站内部页面,请先登录!</h2></s:a>
</s:if>
<s:else>
        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i>
            <span class="crumb-name">首页</span><span class="crumb-step">&gt;</span>
            <span class="crumb-name">媒体管理</span><span class="crumb-step">&gt;</span>
            <span>查看媒体信息</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="checkMediaInfo" method="post" id="" name="" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
	                        <tr>
	                            <th width="120"><i class="require-red">*</i>视频名：</th>
	                            <td>
	                                <s:textfield name="media.filename" id="meida.filename" class="common-text required" type="text" size="50" readonly="true"></s:textfield>
	                            </td>
	                        </tr>
                            <tr>
                                <th><i class="require-red">*</i>时长：</th>
                                <td>
                                     <s:textfield name="media.length" id="media.length" class="common-text required" size="50" readonly="true"></s:textfield>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>开始时间：</th>
                                <td>
                                     <s:textfield name="media.startTime" id="media.startTime" class="common-text required" size="50" readonly="true"></s:textfield>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>结束时间：</th>
                                <td>
                                     <s:textfield name="media.endTime" id="media.endTime" class="common-text required" size="50" readonly="true"></s:textfield>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>存储位置：</th>
                                <td>
                                     <s:textfield name="media.path" id="media.path" class="common-text required" size="50" readonly="true"></s:textfield>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>视频：</th>
                                <td>
				                  <div>
										<!-- 嵌入Flash播放器 -->
								<%-- 		<div width="455">
											<object width="452" height="339" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">   
												<param name="video" value="<%=basePath%>/DATA/${fileName}"/> 
												<embed src="<%=basePath%>DATA/${fileName}" width="40%" height="30%"></embed>
											</object>
										</div>				                  
				                  --%> 
				                    <video id="mediaVideo" controls="controls">
				                      <source src="<%=basePath%>/DATA/${fileName}" type="video/mp4"> 
				                         	您的浏览器不支持 HTML5 video 标签。
				                    </video>
<!-- 				                    <div>
					                    <button class="btn btn-primary btn-sm btn-3" onclick="playPause()">播放/暂停</button> 
					                    <button class="btn btn-primary btn-sm btn-3" onclick="makeBig()">放大</button>
					                    <button class="btn btn-primary btn-sm btn-3" onclick="makeSmall()">缩小</button>
					                    <button class="btn btn-primary btn-sm btn-3" onclick="makeNormal()">普通</button>
				                    </div> -->

				                  </div>                                
                                </td>
                            </tr>                            
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="确认" onclick="history.go(-1)" type="button">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
</s:else>
  </body>
</html>
